<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div:not(#app){
      padding: 50px;
    }
    #div1{
      background-color: rgb(71, 116, 51);
    }
    #div2{
      background-color: rgb(24, 192, 184);
    }
    #div3{
      background-color: rgb(31, 42, 146);
    }
  </style>
</head>
<body>
  <div id="app">
    <div id="div1" @click="fn3">
      <div id="div2" @click="fn2">
        <div id="div3" @click="fn1"></div>
      </div>
    </div>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      methods: {
        fn1(e){
          console.log(1);
          e.stopPropagation();
        },
        fn2(){
          console.log(2);
        },
        fn3(){
          console.log(3);
        }
      }
    })
  </script>
</body>
</html>